@charset "utf-8";

@media (min-width: 1281px) and (max-width: 1520px) {
  header {
    .header-top {
      padding: 0 100px;
    }
    nav {
      padding: 0 100px;
      ul {
        .submenu {
          right: -100px;
        }
      }
    }
  }

  main.common-container {
    .breadcrumbs-nav {
      padding: 0 100px;
    }
  }

  footer {
    .footer-top {
      margin: 0 100px;
    }
    .footer-container {
      & > ul {
        margin: 0 100px;
      }
      .right-text {
        padding: 0 100px;
      }
    }
  }
}

@media (min-width: 1081px) and (max-width: 1280px) {
  header {
    .header-top {
      padding: 0 50px;
    }
    nav {
      padding: 0 50px;
      ul {
        .submenu {
          right: -50px;
          li a {
            font-size: 14px;
          }
        }
        li {
          a {
            font-size: 16px;
          }
        }
      }
    }
  }

  main.common-container {
    .breadcrumbs-nav {
      padding: 0 50px;
    }
  }

  footer {
    .footer-top {
      margin: 0 50px;
    }
    .footer-container {
      & > ul {
        margin: 0 50px;
      }
      .right-text {
        padding: 0 50px;
      }
    }
  }
}

@media (min-width: 769px) and (max-width: 1080px) {
  header {
    .header-top {
      padding: 0 25px;
    }
    nav {
      padding: 0 25px;
      ul {
        .submenu {
          right: -25px;
          li a {
            font-size: 12px;
          }
        }
        li {
          margin: 0 8px;
          a {
            font-size: 14px;
          }
        }
      }
    }
  }

  main.common-container {
    .breadcrumbs-nav {
      padding: 0 25px;
    }
  }

  footer {
    .footer-top {
      margin: 0 25px;
      .contact-left {
        .contact-content {
          p {
            &:nth-child(2) {
              font-size: 20px;
            }
          }
        }
      }
    }
    .footer-container {
      & > ul {
        margin: 0 25px;
      }
      .right-text {
        padding: 0 25px;
      }
    }
  }
}

// 移动端
@media screen and (max-width: 768px) {
  html,
  body {
    overflow: hidden;
    overflow-y: auto;
  }
  body {
    font-size: vm(30);
  }
  header {
    .header-top {
      position: relative;
      background: none;
      .top-info {
        display: none;
      }
      i {
        display: none;
      }
      .top-right {
        transition: 0.4s all ease;
        .search-input {
          position: fixed;
          width: vm(750);
          left: 0;
          background: #333;
          border-radius: 0;
          padding: vm(80);
          z-index: 80;
          border: none;
          display: flex;
          opacity: 0;
          top: 0;
          transition: 0.4s all ease;
          .search-btn {
            padding: 0 vm(10);
            display: block;
            height: vm(80);
            line-height: vm(80);
            background: $mainColor;
            color: #fff;
            transition: 0.4s all ease;
          }
          input {
            flex: 1;
            height: vm(80);
            background-color: #fff;
            color: #000;
            padding-left: vm(30);
            transition: 0.4s all ease;
          }
        }
        .search-active {
          opacity: 1;
          top: vm(100);
        }
      }
    }
    nav {
      position: relative;
      width: vm(750);
      height: vm(100);
      position: fixed;
      top: 0;
      left: 0;
      padding: 0 vm(50);
      box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
      ul {
        background-color: #232429;
        top: vm(100);
        left: 0;
        position: absolute;
        flex-direction: column;
        width: 66.7%;
        li {
          position: relative;
          height: auto;
          margin: 0;
          display: block;
          padding: vm(30) vm(40);
          border-bottom: 1px solid rgba($color: #ffffff, $alpha: 0.5);
          a {
            width: 100%;
            display: flex;
            justify-content: space-between;
            color: #ffffff;
            font-size: vm(30);
            &:hover {
              color: $mainColor;
              &:after {
                display: none;
                transform: none;
              }
            }
          }
          .inmenu_1 {
            color: #ffffff;
            &:after {
              content: none;
            }
          }
          &:last-child {
            border-bottom: none;
          }
          i {
            position: absolute;
            box-sizing: border-box;
            width: vm(60);
            height: vm(30);
            padding-left: vm(30);
            right: vm(30);
            top: vm(30);
            color: #ffffff;
            transform: scale(1.4) rotate(0);
            transform-origin: center center;
            transition: all 0.3s;
          }
          .slide-active {
            transform: scale(1.4) rotate(90deg);
            transform-origin: 6vw 2.9vw;
          }
          &:hover {
            & > a,
            & > i {
              color: #fff;
              &:after {
                transform: translateX(-50%) rotateY(90deg);
              }
            }
          }
        }
        .submenu {
          transition: none;
          position: relative;
          width: 100%;
          right: 0;
          transform-origin: top;
          transform: rotateX(0);
          opacity: 1;
          height: auto;
          background: #232429;
          top: 0;
          list-style-type: square;
          display: none;
          li {
            position: relative;
            list-style-type: square;
            padding: vm(20) 0 0 0;
            margin: 0;
            margin-left: vm(40);
            a {
              font-size: vm(26);
            }
            &:after {
              content: none;
            }
            &:before {
              content: "";
              position: absolute;
              top: vm(32);
              left: vm(-20);
              width: vm(8);
              height: vm(8);
              background-color: #ffffff;
            }
          }
        }
      }
      & > ul {
        left: -66.7%;
      }
      .nav-btn {
        width: 33%;
        display: flex;
      }
      .mobile-search-btn {
        display: block;
        width: 33%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        i {
          transform: scale(1.4);
          color: #919194;
        }
      }
      .header-logo {
        width: 33%;
      }
    }
  }
  main {
    margin-top: 0;
    .breadcrumbs-nav {
      display: none;
    }
    .common-pages {
      margin-bottom: vm(50);
      height: vm(60);
      font-size: vm(35);
      span,
      a {
        margin: 0 vm(5);
        padding: vm(10) vm(20);
        font-size: vm(35);
        height: auto;
      }
    }
  }
  main.common-container {
    .inner-banner {
      min-height: 0;
      .pc {
        display: none;
      }
      .sm {
        display: block;
        min-height: vm(300);
        background: url(/src/images/common/inner-banner-sm.jpg);
        background-size: vm(750) vm(300);
      }
    }
  }
  footer {
    margin-top: vm(50);
    .footer-top {
      height: vm(140);
      margin: 0;
      padding: 0 vm(50);
      .contact-left {
        .contact-logo {
          display: none;
        }
        .contact-content {
          display: flex;
          flex-direction: column;
          justify-content: space-evenly;
          padding-top: 0;
          margin-left: 0;
          width: vm(450);
          height: vm(140);
          p {
            &:first-child {
              font-size: vm(30);
              line-height: vm(30);
              top: 0;
              left: vm(-40);
              transform: scale(0.8);
            }
            &:nth-child(2) {
              position: relative;
              left: vm(-40);
              font-size: vm(30);
              line-height: vm(30);
              padding-right: vm(5);
              @include linef(1);
              transform: scale(0.8);
            }
          }
          &:before {
            display: none;
          }
        }
      }
      .contact-btn {
        width: vm(206);
        height: vm(60);
        border: vm(2) solid #ffffff;
        a {
          font-size: vm(24);
        }
      }
    }
    .footer-container {
      padding-bottom: vm(120);
      height: auto;
      & > ul {
        margin: 0;
        height: auto;
        flex-wrap: wrap;
        & > li {
          flex: none;
          padding: vm(10) 0;
          .content {
            padding-top: 0;
            padding-left: 0;
            font-size: vm(30);
            .content-title {
              font-size: vm(30);
              line-height: vm(50);
            }
            .content-text {
              font-size: vm(24);
              line-height: 2em;
              a {
                color: #707070;
              }
            }
          }
          .logo {
            width: 70px;
            height: 70px;
            overflow: hidden;
            background-size: 200px 37px;
          }
          &:nth-child(1) {
            width: 100%;
          }
          &:nth-child(2) {
            width: 50%;
          }
          &:nth-child(3) {
            width: 50%;
          }
          span {
            margin-top: vm(20);
            height: vm(40);
            position: relative;
            right: vm(30);
            top: vm(-5);
          }
          &.map .logo {
            background-position: 10px 20px;
          }
          &.email .logo {
            background-position: -70px 20px;
          }
          &.tel .logo {
            background-position: -150px 20px;
          }
        }
      }
      .bottom-info {
        height: auto;
        padding-left: vm(50);
        margin-top: vm(5);
        li {
          .title {
            line-height: vm(80);
          }
        }
        .intro,
        .cate {
          display: none;
        }
        .nav {
          margin: 0;
          .title {
            display: none;
          }
          ul {
            display: flex;
            flex-wrap: wrap;
            li {
              margin-right: vm(20);
              min-width: 30%;
              a {
                font-size: vm(30);
                line-height: vm(50);
              }
            }
          }
        }
        .code {
          display: none;
          .title {
            font-size: vm(30);
          }
          img {
            width: vm(135);
            height: vm(135);
            min-width: vm(135);
            opacity: 1;
          }
        }
        .contact-list {
          width: 100%;
          margin-top: vm(30);
          display: flex;
          li {
            width: vm(50);
            height: vm(50);
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: vm(10);
            img {
              width: 100%;
            }
          }
        }
      }
      .right-text {
        padding: 0 vm(50);
        font-size: vm(24);
        line-height: vm(70);
      }
    }
    .mobile-bottom {
      z-index: 9;
      height: vm(120);
      background: $mainColor;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-evenly;
      .mobile-bottom-item {
        background: $mainColor;
        padding: vm(5) 0;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        height: vm(120);
        width: vm(120);
        font-size: vm(30);
        a {
          display: flex;
          flex-direction: column;
          justify-content: space-around;
          align-items: center;
          width: 100%;
          height: 100%;
          color: #ffffff;
        }
        i {
          transform: scale(1.6);
          margin-bottom: vm(5);
        }
      }
    }
  }

  #toast-container {
    padding-top: 150px;
  }
}

// ipad
@media screen and (min-width: 751px) and (max-width: 768px) {
  footer {
    .footer-top {
      .contact-left {
        .contact-content {
          p {
            &:first-child {
              font-size: 28px;
            }
            &:nth-child(2) {
              font-size: 28px;
            }
          }
        }
      }
      .contact-btn {
        a {
          font-size: 20px;
        }
      }
    }
    .footer-container {
      & > ul {
        & > li {
          .content {
            font-size: 24px;
            .content-title {
              font-size: 24px;
            }
            .content-text {
              font-size: 20px;
              a {
                color: #707070;
              }
            }
          }
          .logo {
            width: 90px;
            height: 90px;
          }
          &.map .logo {
            background-position: 10px 30px;
          }
          &.email .logo {
            background-position: -70px 30px;
          }
          &.tel .logo {
            background-position: -150px 30px;
          }
        }
      }
      .bottom-info {
        .nav {
          .title {
            font-size: 24px;
          }
          ul {
            li {
              a {
                font-size: 24px;
              }
            }
          }
        }
      }
      .right-text {
        font-size: 20px;
      }
    }
    .mobile-bottom {
      .mobile-bottom-item {
        font-size: 24px;
      }
    }
  }
}
